package com.lanhai.model;

import java.util.Date;

import lombok.Data;
/**
 * AGV
 * @author liangmin
 *
 */
@Data
public class Agv {
	public int id;//车号
	public String name;
	public int state;
	public int lastState;//上一次更新状态
	public int ctrlState;//调度的状态
	public byte[] ctrlCommand;//调度指令
	public String ctrlCommandStr;//调度指令的Hex字符串
	public String ctrlNote;//调度指令说明
	public int lastPoint;//上次到达（地标）
	public int ctrlFlag;//交管区入口是否停车，0、不停车，1、停车
	public String ipAddress;//Agv的IP地址
	public int port;//Agv的UDP端口
	public Date lastSendTime;//最后发送数据时间(系统向AGV发送)
	public Date lastReceiveTime;//最后接收数据时间
	public String parkName;//当前泊位名称
	public int parkId;//泊位ID
	public int lastJoinStationId;//上次对接机台的ID(用于匹配生产型号)
	public String lastJoinStationName;//上次对接机台的名称
	public String nextDot;//下一站地标(行驶线路号)
	public String lastData;//最后一条收到的数据
	public String lastTime;//最后接收的时间
	public int number;//待命位编号
	public Date beginChargeTime;//开始充电时间
	public int step;//工序
	public int dupCommandQty;//接收重复指令数
	public int lastX;//上一个位置的X座标
	public int lastY;//上一个位置的Y座标
	public int currentX;//当前位置的X座标
	public int currentY;//当前位置的Y座标
	public int startPoint;//多段路径起点
	public int endPoint;//多段路径终点
	public int isMultiPath;//是否执行多段路径
	public int goal;//目标泊位(地标号)
	public int pGroup;//上次对接的机台线别编号
	public int pType;//车上花蓝的产品分组:0、18X,1、182,2、210
	public int battery;//电池余量
	public int loadState;//负载状况
	public int lastTraOrder;//停止传输前的前一条指令
	public Date waitParkTimes;//等待位待命时间
	public int lineLockGroup;//线路锁组; 0：独占；	其他：分组
	public Date chargerTimes;//充电时间
	
	/**
	 * 低电量充电时长
	 * true:电量低；fasle：电量满
	 */
	public boolean lowCharger;
	
	
	/**
	 * 物料工序
	 */
	public int isStep;
	
	/**
	 * igv下游工序
	 */
	public int nextStep;
	
	
	public Date getChargerTimes() {
		return chargerTimes;
	}
	public void setChargerTimes(Date chargerTimes) {
		this.chargerTimes = chargerTimes;
	}
	public int getLineLockGroup() {
		return lineLockGroup;
	}
	public void setLineLockGroup(int lineLockGroup) {
		this.lineLockGroup = lineLockGroup;
	}
	public Date getWaitParkTimes() {
		return waitParkTimes;
	}
	public void setWaitParkTimes(Date waitParkTimes) {
		this.waitParkTimes = waitParkTimes;
	}
	public int getLastTraOrder() {
		return lastTraOrder;
	}
	public void setLastTraOrder(int lastTraOrder) {
		this.lastTraOrder = lastTraOrder;
	}
	public String getLastTime() {
		return lastTime;
	}
	public void setLastTime(String lastTime) {
		this.lastTime = lastTime;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	public int getLastPoint() {
		return lastPoint;
	}
	public void setLastPoint(int lastPoint) {
		this.lastPoint = lastPoint;
	}
	public int getCtrlFlag() {
		return ctrlFlag;
	}
	public void setCtrlFlag(int ctrlFlag) {
		this.ctrlFlag = ctrlFlag;
	}
	public String getIpAddress() {
		return ipAddress;
	}
	public void setIpAddress(String ipAddress) {
		this.ipAddress = ipAddress;
	}
	public Date getLastSendTime() {
		return lastSendTime;
	}
	public void setLastSendTime(Date lastSendTime) {
		this.lastSendTime = lastSendTime;
	}		
	public int getPort() {
		return port;
	}
	public void setPort(int port) {
		this.port = port;
	}
	@Override
	public String toString(){
		return "No:" + id;
	}
	public String getParkName() {
		return parkName;
	}
	public void setParkName(String parkName) {
		this.parkName = parkName;
	}
	public int getParkId() {
		return parkId;
	}
	public void setParkId(int parkId) {
		this.parkId = parkId;
	}
	public String getNextDot() {
		return nextDot;
	}
	public void setNextDot(String nextDot) {
		this.nextDot = nextDot;
	}
	public String getLastData() {
		return lastData;
	}
	public void setLastData(String lastData) {
		this.lastData = lastData;
	}
	public int getNumber() {
		return number;
	}
	public void setNumber(int number) {
		this.number = number;
	}
	public int getCtrlState() {
		return ctrlState;
	}
	public void setCtrlState(int ctrlState) {
		this.ctrlState = ctrlState;
	}
	public byte[] getCtrlCommand() {
		return ctrlCommand;
	}
	public void setCtrlCommand(byte[] ctrlCommand) {
		this.ctrlCommand = ctrlCommand;
	}
	public String getCtrlNote() {
		return ctrlNote;
	}
	public void setCtrlNote(String ctrlNote) {
		this.ctrlNote = ctrlNote;
	}
	public Date getBeginChargeTime() {
		return beginChargeTime;
	}
	public void setBeginChargeTime(Date beginChargeTime) {
		this.beginChargeTime = beginChargeTime;
	}
	public int getStep() {
		return step;
	}
	public void setStep(int step) {
		this.step = step;
	}
	public String getCtrlCommandStr() {
		return ctrlCommandStr;
	}
	public void setCtrlCommandStr(String ctrlCommandStr) {
		this.ctrlCommandStr = ctrlCommandStr;
	}
	public Date getLastReceiveTime() {
		return lastReceiveTime;
	}
	public void setLastReceiveTime(Date lastReceiveTime) {
		this.lastReceiveTime = lastReceiveTime;
	}
	public int getDupCommandQty() {
		return dupCommandQty;
	}
	public void setDupCommandQty(int dupCommandQty) {
		this.dupCommandQty = dupCommandQty;
	}
	public int getCurrentX() {
		return currentX;
	}
	public void setCurrentX(int currentX) {
		this.currentX = currentX;
	}
	public int getCurrentY() {
		return currentY;
	}
	public void setCurrentY(int currentY) {
		this.currentY = currentY;
	}
	public int getLastX() {
		return lastX;
	}
	public void setLastX(int lastX) {
		this.lastX = lastX;
	}
	public int getLastY() {
		return lastY;
	}
	public void setLastY(int lastY) {
		this.lastY = lastY;
	}
	public int getStartPoint() {
		return startPoint;
	}
	public void setStartPoint(int startPoint) {
		this.startPoint = startPoint;
	}
	public int getEndPoint() {
		return endPoint;
	}
	public void setEndPoint(int endPoint) {
		this.endPoint = endPoint;
	}
	public int getIsMultiPath() {
		return isMultiPath;
	}
	public void setIsMultiPath(int isMultiPath) {
		this.isMultiPath = isMultiPath;
	}
	public int getLastJoinStationId() {
		return lastJoinStationId;
	}
	public void setLastJoinStationId(int lastJoinStationId) {
		this.lastJoinStationId = lastJoinStationId;
	}
	public String getLastJoinStationName() {
		return lastJoinStationName;
	}
	public void setLastJoinStationName(String lastJoinStationName) {
		this.lastJoinStationName = lastJoinStationName;
	}
	public int getGoal() {
		return goal;
	}
	public void setGoal(int goal) {
		this.goal = goal;
	}
	public int getpGroup() {
		return pGroup;
	}
	public void setpGroup(int pGroup) {
		this.pGroup = pGroup;
	}
	public int getpType() {
		return pType;
	}
	public void setpType(int pType) {
		this.pType = pType;
	}
	public int getBattery() {
		return battery;
	}
	public void setBattery(int battery) {
		this.battery = battery;
	}
	public int getLoadState() {
		return loadState;
	}
	public void setLoadState(int loadState) {
		this.loadState = loadState;
	}
	public int getLastState() {
		return lastState;
	}
	public void setLastState(int lastState) {
		this.lastState = lastState;
	}
	
}
